class MetadataBlock {
  constructor() {
    this.name = 'Example'
    this.version = '1.0.1'
    this.description = 'This is a example script base Jquery and Vue'
    this.author = 'hucy'
    this.include = ['*']
    this.require = [
      'https://cdn.bootcss.com/jquery/3.3.1/jquery.js',
      'http://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js',
      'https://cdn.bootcdn.net/ajax/libs/lodash.js/4.17.21/lodash.min.js',
      'https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.runtime.min.js',
      'https://unpkg.com/element-ui/lib/index.js'
    ]
    this.grant = [
      'GM_addStyle',
      'GM_setValue',
      'GM_getValue',
      'GM_listValues',
      'GM_deleteValue',
      'GM_xmlhttpRequest',
      'GM_download'
      // GM_setClipboard(data, info)
      // 复制 data 到剪贴板.
      // 参数 'info' 格式: "{ type: 'text', mimetype: 'text/plain'}"
      // 或者仅设置type ("text" or "html").
      // 'GM_setClipboard'
    ]
  }
}

module.exports = new MetadataBlock()
